package com.zq.it.dao;

import java.util.List;

import com.zq.it.pojo.Page;

public interface BaseDao<T> {

    void add(T t);

    void delete(T t);

    void update(T t);

    List<T> findByHql(Page page, String hql);

    int getCountByHql(String hql);

    List<T> getList(Page page, String hql, String name, Object value);

    int getCount(String hql, String name, Object value);

    T getById(long id, Class<?> c);

    List<T> findAll(String hql);

    List<T> findByCriteria(Class<T> t, String fetchMode,
            String parmeter, Object value, Page page);
    List getPage(int currentPage, String hql);
}
